package cn.qingyun.gis.modules.baogan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: CRM人员表实体对象
 * @Version: V1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("crm_staff")
@ApiModel(value = "CrmStaff对象", description = "CrmStaff对象")
public class CrmStaff implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * crm 工号
     */
    @ApiModelProperty(value = "crm 工号")
    @Excel(name = "crm 工号", width = 15)
    private String crmAccount;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Excel(name = "名称", width = 15)
    private String name;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @Excel(name = "电话", width = 15)
    private String phone;

    /**
     * 地市
     */
    @ApiModelProperty(value = "地市")
    @Excel(name = "地市", width = 15)
    private Integer region;

    /**
     * 网格编码
     */
    @ApiModelProperty(value = "网格编码")
    @Excel(name = "网格编码", width = 15)
    private String gridCode;

    /**
     * 高德行政区县编码
     */
    @ApiModelProperty(value = "网格名称")
    @Excel(name = "网格名称", width = 15)
    private String gridName;

    /**
     * 渠道编码
     */
    @ApiModelProperty(value = "渠道编码")
    @Excel(name = "渠道编码", width = 15)
    private String channelCode;

    /**
     * 渠道名称
     */
    @ApiModelProperty(value = "渠道名称")
    @Excel(name = "渠道名称", width = 15)
    private String channelName;

    /**
     * 是否是自有人员
     */
    @ApiModelProperty(value = "是否是自有人员")
    @Excel(name = "是否是自有人员", width = 15)
    private String selfFlag;

    /**
     * 状态  1  2  CRM 给的    调用接口异常更新为3
     */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态", width = 15)
    private String status;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @Excel(name = "更新时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 角色信息  JSON 串
     */
    private String roleInfos;
}
